package com.wzh.user.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户数据传输对象，用于用户信息的传递和交换
 * </p>
 *
 * @author 山归岿
 * @create 2025-06-15-19:42
 */
@Data
@Schema(description = "系统用户表DTO")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysUserDTO {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "性别（0：未知 1：男 2：女）")
    private Integer sex;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "状态（0：正常 1：禁用）")
    private Integer status;

    @Schema(description = "角色ID")
    private Long roleId;

    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "部门ID")
    private Long deptId;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "创建者")
    private String createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者")
    private String updateBy;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "删除标志（0：正常 1：删除）")
    private Integer delFlag;

}